<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
</head>
<body>
    <div id="app">
        <ul>
            <li v-for='(item,index) in list'>
                {{(index+1)%2==0?item.name:item.id}}

            </li>
        </ul>
    </div>
    <script>
        const vm =new Vue({
            el:'#app',
            data:{
               list:[{
                   id:1,
                   name:'lal '
               },{
                   id:2,
                   name:'lalalala'
               },{
                   id:3,
                   name:'lalalalallala'
               }
               ]
            }
        })
    </script>
</body>
</html>